package day1126;

public class Demo9 {

    public static void main(String[] args) {
        int[]  ar={5,9,3};
        int rs=find(ar);
        System.out.println(rs);
    }

    static   int  find(int[]  ary){
        int max=0;
        for(int i=0;i<ary.length;i++){
            if(ary[i]>max){max=ary[i];}
        }
        return max;
    }


}
